package com.suixinsanren.design.template.demo05;

public class Coffee extends CaffeineBeverage {

    @Override
    public void brew() {
        System.out.println("倒入咖啡粉搅拌");
    }

    @Override
    public void addCondiments() {
        System.out.println("添加糖和牛奶");
    }

    @Override
    public boolean customerWantsCondiments() {
        System.out.println("请问咖啡需要加糖加奶吗？");
        return getUserInput().startsWith("y");
    }
}
